package cn.itsource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
//@EnableEurekaClient //启动eureka注册中心客户端 只能适配eureka，注册中心换了就不行了。
@EnableDiscoveryClient//兼容性好，不仅支持eureka，还支持nacas等注册中心
public class OrderServiceStart2010 {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceStart2010.class,args);
    }
}
